import { createProxyMiddleware } from 'http-proxy-middleware';

module.exports = function(app){
    app.use(
        createProxyMiddleware('/zhi',{
            target:'https://news-at.zhihu.com/api/4',
            changeOrigin: true,
            ws: true,
            pathRewrite: {'^juejin':''}
        })
    )
}